const mongoose = require('mongoose');

// 创建人脸信息集合规则
const faceSchema = new mongoose.Schema({
    imageURL: {
        type: String,
        required: true
    },
    imageType: {
        type: String,
        required: true
    },
    groupId: {
        type: String,
        required: true,
        default: '1'
    },
    userId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'User',
        required: true
    }
});

const Face = mongoose.model('Face', faceSchema);

module.exports = {
    Face
}